import request from '@/utils/request'
import { praseStrEmpty } from "@/utils/harry";
// 订单列表
export function listOrder(query) {
  return request({
    url: '/sys/runorder/cash/out/pageList',
    method: 'post',
    data: query
  })
}
// 订单详情
export function listOrderDetail(tradeNo) {
  return request({
    url: `/sys/runorder/cash/out/info/${tradeNo}`,
    method: 'POST',
    params: ''
  })
}
// 订单列表搜索下拉
export function listOrderOption(query) {
  return request({
    url: '/sys/runorder/pageList/select',
    method: 'get',
    data: query
  })
}
// 订单取消
export function listOrderAuth({ tradeNo, ...data }) {
  return request({
    url: `/sys/runorder/cash/out/check/${tradeNo}`,
    method: 'post',
    data
  })
}
//导出
export function listOrderExport({ ...data }) {
  return request({
    url: `/sys/runorder/cash/out/pageList/export`,
    headers: { 'Content-Type': 'application/json' },
    method: 'post',
    ...data
  })
}
